package com.my.mapper;

import com.my.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper//想要Mapper接口被扫描到需要添加Mapper注解
public interface UserMapper {
    @Select("select * from user")
    public List<User> queryUserList();
}
